package codej.ast;

import codej.ast.*;
import codej.ast.*;

public class ForEach extends ForControl {

	private final ForInit forInit;
	private final Expression expression;

	@Override
	public void accept(Visitor visitor) {
		visitor.visit(this);
	}

	public ForEach(ForInit forInit, Expression expression) {
		this.forInit = forInit;
		this.expression = expression;
	}

	public ForInit getForInit() {
		return forInit;
	}

	public Expression getExpression() {
		return expression;
	}

}
